package com.comdosoft.comdoandroidbase.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.comdosoft.comdoandroidbase.R;
import com.comdosoft.comdoandroidbase.util.ClientUpdate;

public class UpDateFragment extends Fragment {


    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_update, container, false);
        initView(view);
        return view;
    }

    private void initView(View view) {
        Button bt=(Button)view.findViewById(R.id.bt);
        bt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                new ClientUpdate(getActivity()).check();
            }
        });
    }


}
